<?php
/**
 * 商品类入口文件
 * @package demo1
 * @author Adair
 */

require_once("shop_product.php");
require_once("shop_product_write.php");


$product1 = new ShopProduct1("My Book","Adair","Z",6.88);
$write = new ShopProductWrite();
$write->write($product1);
$write->write(new Wrong("My Wrong Book","Adair","Z",6.99));